Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade: Bump reselect from 4.0.0 to 4.1.6 #17

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jul 5, 2022

Bumps reselect from 4.0.0 to 4.1.6.

Release notes

Sourced from reselect's releases.

v4.1.6

This release updates the TS types to better handle cases with default parameters, or any/unknown types.

What's Changed

Full Changelog: reduxjs/reselect@v4.1.5...v4.1.6

v4.1.5

This release updates the TS types to correctly infer selector parameters when input selectors have undefined or null as a parameter type or have optional parameters, and exports the CreateSelectorFunction type to fix uses of createStructuredSelector.

(The types fixes feel like playing whack-a-mole, but they keep getting better!

What's Changed

Full Changelog: reduxjs/reselect@v4.1.4...v4.1.5

v4.1.4

This release has (you guessed it) more fixes to the TS types: a change to parameter merging that fixes breakage with selectors and RTK Query's API state, a simplification of the OutputSelectorFields type to improve selector variable readability, another update to parameter merging to flag nested never fields as compile errors, and a fix to createStructuredSelector parameters to resolve a lib compilation problem.

Changelog

More TS Fixes

The parameter merging fixes in 4.1.3 tried to "unwrap/expand" the parameter types to make them more readable, such as showing intersected objects as {a, b, c} instead of {a} & {b} & {c}. This was done with a recursive expansion type. That turned out to break with the complex state types used by RTK Query. We've updated the type expansion to only be a single level instead, which fixes the compilation issue.

The OutputSelectorFields type previously took two generics: the Combiner function, and a Result type. This led to extra values being shown in hover previews for selectors. By inferring Result = ReturnType<Combiner>, we were able to drop the second generic and cut down on the amount of types shown in previews.

A user noted that intersected objects with top-level incompatible fields (like {a: string} & {a: number}) resulted in empty objects, but no compile error. We've updated the parameter merging to flag those as never and catch the problem at compile time. Deeper nested incompatible fields should already be caught by TS.

The previous fix to createStructuredSelector missed a step in the spreading process, which has now been fixed.

What's Changed

Full Changelog: reduxjs/reselect@v4.1.3...v4.1.4

v4.1.3

This release rewrites the TS type inference of input selector parameters for correctness, fixes inference of createStructuredSelector inputs, and fixes an issue with the OutputSelectorFields type not being exported.

Changelog

Input Selector Parameter Inference Improvements

... (truncated)

Changelog

Sourced from reselect's changelog.

Change log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

Commits
  • 9d62d03 Release 4.1.6
  • d49e4e1 Give internal memoize callback functions names for dev readability
  • b8cbd19 Merge pull request #572 from lukeapage/types-fix-1
  • 9f8ef29 add another test case
  • 25cdc41 Fix #563
  • 2f892bb 4.1.5
  • 901dab0 Merge pull request #557 from reduxjs/feature/csf-export
  • 9f5998e Include 4.5 in the TS test matrix
  • ad1eb08 Export CreateSelectorFunction to fix createStructuredSelector usage
  • 71e6cb6 Merge pull request #556 from reduxjs/feature/param-undefined-intersections
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by acemarke, a new releaser for reselect since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [reselect](https://github.com/reduxjs/reselect) from 4.0.0 to 4.1.6.
- [Release notes](https://github.com/reduxjs/reselect/releases)
- [Changelog](https://github.com/reduxjs/reselect/blob/master/CHANGELOG.md)
- [Commits](reduxjs/reselect@v4.0.0...v4.1.6)

---
updated-dependencies:
- dependency-name: reselect
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 5, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Nov 4, 2022

Superseded by #82.

@dependabot dependabot bot closed this Nov 4, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/reselect-4.1.6 branch November 4, 2022 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants